package com.zx.www.volunteersystem.pojo;

import java.time.LocalDateTime;

public class Notice {
    private Integer noticeId;
    private String title;
    private String content;
    private Integer publisherId;
    private LocalDateTime publishTime;
    private Integer isTop;

    // 无参构造函数
    public Notice() {}

    // 全参构造函数
    public Notice(Integer noticeId, String title, String content,
                  Integer publisherId, LocalDateTime publishTime, Integer isTop) {
        this.noticeId = noticeId;
        this.title = title;
        this.content = content;
        this.publisherId = publisherId;
        this.publishTime = publishTime;
        this.isTop = isTop;
    }

    // Getter和Setter方法
    public Integer getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(Integer noticeId) {
        this.noticeId = noticeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getPublisherId() {
        return publisherId;
    }

    public void setPublisherId(Integer publisherId) {
        this.publisherId = publisherId;
    }

    public LocalDateTime getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(LocalDateTime publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "noticeId=" + noticeId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", publisherId=" + publisherId +
                ", publishTime=" + publishTime +
                ", isTop=" + isTop +
                '}';
    }
}
